import {
	get,
	post
} from 'utils/requests'

export const productSearch = (key,pageNo,pageSize) => get({
	// url: `/primaryProduct/search/${key}`,
	// url: `/applet/index/search/${key}`,
	url: `/applet/index/search/product/${key}`,
	data:{pageNo,pageSize},
	loading: true
})

export const demandSearch = (key,pageNo,pageSize) => get({
	url: `/applet/index/search/demand/${key}`,
	data:{pageNo,pageSize},
	loading: true
})